<template>
  <div class="container">
    <!-- <div class="box">
      <header class="header">头部</header>
      <div class="content">内容</div>
    </div> -->
    <router-view></router-view>
    <router-view name="footer"></router-view>
  </div>
</template>
<style lang="scss">
*{
  padding: 0;
  margin: 0;
  list-style: none;
}
html,body,#app,.container{
  width: 100%;
  height: 100%;
}
.container{
  display: flex;
  flex-direction: column;
  background: #efefef;
  .box{
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    .header{
      height: 50px;
    }
    .content{
      flex: 1;
      overflow: auto;
      margin-top: 70px;
    }
  }
  .footer{
    height: 50px;
    ul{
      background: #fff;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      a{
        text-align: center;
        color: #000;
        span{
          font-size: 22px;
        }
        &.router-link-active{
          color: #09f;
        }
      }
    }
  }
}
</style>
